/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Dbaudit.Model
{

    /// <summary>
    ///  instanceSpec
    /// </summary>
    public class InstanceSpec
    {

        ///<summary>
        /// 订单类型：新购-NEW，变配-RESIZE_FORMULA，暂只支持新购
        ///</summary>
        public string OrderType{ get; set; }
        ///<summary>
        /// 实例名称,长度限制32字节,允许英文字母,数字,下划线,中划线和中文
        ///</summary>
        public string InsName{ get; set; }
        ///<summary>
        /// 实例描述,长度限制128字节
        ///</summary>
        public string InsDesc{ get; set; }
        ///<summary>
        /// 可用区
        ///</summary>
        public string InsZone{ get; set; }
        ///<summary>
        /// 实例规格: basic:标准版 professional:企业版 enterprise:增强版 ultimate:旗舰版
        ///</summary>
        public string InsType{ get; set; }
        ///<summary>
        /// 私有网络Id(VPCId)
        ///</summary>
        public string VpcId{ get; set; }
        ///<summary>
        /// 私有网络子网Id(SubNetId)
        ///</summary>
        public string SubnetId{ get; set; }
        ///<summary>
        /// 资源计费类型（CONFIG-按配置，FLOW-按用量，MONTHLY-包年包月，ONCE-按次付费，暂只支持包年包月
        ///</summary>
        public string ChargeMode{ get; set; }
        ///<summary>
        /// 购买时长类型, 新购时必传. 
        /// MONTH: 按月购买
        /// YEAR: 按年购买
        /// 
        ///</summary>
        public string TimeUnit{ get; set; }
        ///<summary>
        /// 购买时长, 新购时必传. 
        /// timeUnit &#x3D; MONTH 时, 可取值 1-9
        /// timeUnit &#x3D; YEAR 时, 可取值 1-3
        /// 
        ///</summary>
        public int? TimeSpan{ get; set; }
        ///<summary>
        /// 购买数量
        ///</summary>
        public int? Quantity{ get; set; }
        ///<summary>
        /// 商品规格参数,支付确认页面显示商品详情用
        ///</summary>
        public string ExtraInfo{ get; set; }
        ///<summary>
        /// 计费配置项
        ///</summary>
        public string Formula{ get; set; }
        ///<summary>
        /// 打包标识
        ///</summary>
        public string TaskId{ get; set; }
        ///<summary>
        /// OPEN-开通自动续费,CLOSE-关闭自动续费,默认关闭
        ///</summary>
        public string AutoRenew{ get; set; }
        ///<summary>
        /// 自动续费时间单位(MONTH-月,YEAR-年)
        ///</summary>
        public string RenewTimeUnit{ get; set; }
        ///<summary>
        /// 自动续费时长
        /// 1. renewTimeUnit&#x3D;MONTH 时，取值范围 [1,9]
        /// 2. renewTimeUnit&#x3D;YEAR 时，取值范围 [1,3]
        /// 
        ///</summary>
        public int? RenewTimeSpan{ get; set; }
        ///<summary>
        /// 跳转页面
        ///</summary>
        public string ReturnUrl{ get; set; }
        ///<summary>
        /// ServiceCode，用作计费使用
        ///</summary>
        public string ServiceCode{ get; set; }
        ///<summary>
        /// appCode，用作计费使用
        ///</summary>
        public string AppCode{ get; set; }
        ///<summary>
        /// ydCode, 云鼎业务线用来关联订单
        ///</summary>
        public string YdCode{ get; set; }
    }
}
